
#ifndef UI_CADTOOLBARDIM_H
#define UI_CADTOOLBARDIM_H

class UI_CadToolBar;

#include "wf_actionhandler.h"
#include "ui_ui_cadtoolbardim.h"
#include "..\gui_export.h"

class GUI_EXPORT UI_CadToolBarDim : public QWidget, public Ui::UI_CadToolBarDim
{
    Q_OBJECT

public:
    UI_CadToolBarDim(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
    ~UI_CadToolBarDim();

public slots:
    virtual void mousePressEvent( QMouseEvent * e );
    virtual void contextMenuEvent( QContextMenuEvent * e );
    virtual void setCadToolBar( UI_CadToolBar * tb );
    virtual void drawDimAligned();
    virtual void drawDimLinear();
    virtual void drawDimLinearHor();
    virtual void drawDimLinearVer();
    virtual void drawDimRadial();
    virtual void drawDimDiametric();
    virtual void drawDimAngular();
    virtual void drawDimLeader();
    virtual void back();

protected:
    UI_CadToolBar* cadToolBar;
    WF_ActionHandler* actionHandler;

protected slots:
    virtual void languageChange();

private:
    void init();

};

#endif // QG_CADTOOLBARDIM_H
